HeaderInterceptor

public final class HeaderInterceptor implements Interceptor

This class defines the header interceptor to modify the HTTP requests properly.

Constructors

HeaderInterceptor
Link copied to clipboard
HeaderInterceptor HeaderInterceptor()

Functions

addHeadersToRequest
Link copied to clipboard
final Request addHeadersToRequest(Request original)
This method adds headers to the given Request HTTP package in input and returns it.
getCacheControl
Link copied to clipboard
final String getCacheControl()
getUserAgent
Link copied to clipboard
final String getUserAgent()
intercept
Link copied to clipboard
Response intercept(Interceptor.Chain chain)

Properties

cacheControl
Link copied to clipboard
private final String cacheControl
userAgent
Link copied to clipboard
private final String userAgent